# # dict1={
# #     "会员折扣":0,
# #     "账户余额":0,
# #     "可用积分":0,
# #     "优惠卷":0,
# # }
# list1=[1,2,3,4]
# a,b,c,d=list1
# dict1={
#     "会员折扣":a,
#     "账户余额":b,
#     "可用积分":c,
#     "优惠卷":d,
# }
# # for key,value in dict1.items():
# #
# # for i, item in enumerate(dict1.items()):
# #     print(i)
# #     print(item) #item 就是字典的key跟value的结合
# #     dict1[item[0]] =list1[i]
# # print(dict1)

import time

from selenium import webdriver
from selenium.webdriver import ActionChains

from selenium.webdriver.common.by import By
driver=webdriver.Edge()
driver.maximize_window()
driver.get("http://localhost:8081/regA.html")
js="window.scrollTo(0,800)"
driver.execute_script(js)

file_input = driver.find_element(By.CSS_SELECTOR,"input[name='upfilea']")
file_input.send_keys(r"E:\Desktop\第一阶段--常见面试提问 - 副本.docx")






# 4 关闭浏览器驱动对象
time.sleep(30)  #代码暂停10s中
driver.quit()










